<style>
.memlogo-area2 {
    width: 100%;
    height: 9rem;
    background: #55bd47;
    margin: 0 auto;
    border-radius: 0.5rem;
    padding: 1.2rem 1rem;
    color: #fff;
    margin-bottom: 1rem;
}
</style>
<div class='fui-page fui-page-current'>
	<div class='fui-content member-page'>
			<div style="padding:0.5rem;padding-bottom:0">
					<div class="memlogo-area2" style="background: #55bd47;">
					<div class="fui-cellone" style="padding:0">
						<div class="fui-cellone-label" style="width:3.5rem">
							<img style="width:3rem;height:3rem;border-radius:100%" ng-src="{{tomedia(pagedata.member.avatar) || '../core/resource/images/gw-user.png'}}">
						</div>
						<div class="fui-cellone-text" style="color:#fff">
							<div class="name">{{pagedata.member.nickname || '匿名'}}</div>
							<div style="color:#f60;font-size:0.6rem">会员ID:{{pagedata.member.mid}} [{{pagedata.merchname || '总部平台'}}]</div>
							<div class="name">{{pagedata.member.mobile || '无手机号'}}</div>
						</div>
						<div class="fui-cellone-remark noremark">
							<div class="jylabel jylabel-info" href="javascript:;" ng-click="access_json('core/member.credit_log/')" style="border: 1px solid #fff;color:#fff;">余额记录</div>
						</div>
					</div>
					<div class="fui-cellone" style="padding:0;margin-top:0.2rem">
						<div class="fui-cellone-text" style="color:#fff">
							<h5 href="javascript:;" ng-click="access_json('jy_merch/member.recharge/')">我的余额  <span class="jylabel jylabel-info" style="border: 1px solid #f60;color:#f60;">充值</span></h5>
							<h2 style="margin-top:0">{{pagedata.item.credit2 || 0.00}}</h2>
						</div>
						<div class="fui-cellone-remark noremark">
								<span class="jylabel jylabel-info r-f" href="javascript:;" ng-click="access_json('/member.sendlog/')" style="border: 1px solid #fff;color:#fff;">配送记录</span>
						</div>
					</div>
					</div>
			</div>
			<div style="padding:0 0.5rem">
			<div class="fui-cell-group fui-cell-click mod-group">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('/member.pei_order/')">
								<div class="fui-cell-text bold">我的订单</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部订单</div>
							</a>
							<div class="fui-icon-group col-5 selecter">
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('/member.pei_order//status=0')">
									<div class="badge" ng-if="pagedata.statics.status0>0">{{pagedata.statics.status0}}</div>
									<div class="icon icon-green radius"><i class="icon icon-daifukuan1"></i></div>
									<div class="text">待付款</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('/member.pei_order//status=1')">
									<div class="badge" ng-if="pagedata.statics.status1>0">{{pagedata.statics.status1}}</div>
									<div class="icon icon-orange radius"><i class="icon icon-daifahuo"></i></div>
									<div class="text">待配送</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('/member.pei_order//status=2')">
									<div class="badge" ng-if="pagedata.statics.status2>0">{{pagedata.statics.status2}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
									<div class="text">配送中</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('/member.pei_order//status=3')">
									<div class="icon icon-blue radius"><i class="icon icon-survey1"></i></div>
									<div class="text">已完成</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('/member.pei_order//status=7')">
									<div class="icon icon-pink radius"><i class="icon icon-tuihuanhuo1"></i></div>
									<div class="text">异常报备</div>
								</a>
							</div>
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('jy_peimilk/member.mybaodan/')">
								<div class="fui-cell-text bold">我的报单</div>
								<div class="fui-cell-remark"></div>
							</a>
			</div>
			<div class="fui-cell-group fui-cell-click mod-group">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('/member.sendlog/')">
								<div class="fui-cell-text bold">我的配送单</div>
								<div class="fui-cell-remark" style="font-size: 0.65rem;">查看全部配送单</div>
							</a>
							<div class="fui-icon-group col-4 selecter">
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('/member.sendlog//status=0')">
									<div class="badge" ng-if="pagedata.statics2.status0>0">{{pagedata.statics2.status0}}</div>
									<div class="icon icon-orange radius"><i class="icon icon-daifahuo"></i></div>
									<div class="text">待配送</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('/member.sendlog//status=1')">
									<div class="badge" ng-if="pagedata.statics2.status1>0">{{pagedata.statics2.status1}}</div>
									<div class="icon icon-blue radius"><i class="icon icon-daishouhuo1"></i></div>
									<div class="text">配送中</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('/member.sendlog//status=2')">
									<div class="icon icon-blue radius"><i class="icon icon-survey1"></i></div>
									<div class="text">已完成</div>
								</a>
								<a class="fui-icon-col-sm external" href="javascript:;" ng-click="access_json('/member.sendlog//status=7')">
									<div class="badge" ng-if="pagedata.statics2.status7>0">{{pagedata.statics2.status7}}</div>
									<div class="icon icon-pink radius"><i class="icon icon-tuihuanhuo1"></i></div>
									<div class="text">异常单</div>
								</a>
							</div>
			</div>
			<div class="fui-cell-group fui-cell-click mod-group">
							<a class="fui-cell external" href="javascript:;" ng-click="access_json('/member.pei_order/')">
								<div class="fui-cell-text bold">定期配送订单总览</div>
								<div class="fui-cell-remark noremark" style="font-size: 0.65rem;">
								<div class="btn btn-sm btn-success-o order-finish" style="font-size:0.7rem" href="javascript:" ng-click="access_json('/setpei//');">设置商品配送</div>
								</div>
							</a>
							<div class="fui-icon-group col-5">
								<div class="fui-icon-col-sm external">
									<div class="text bold">商品图片</div>
								</div>
								<div class="fui-icon-col-sm external">
									<div class="text bold">商品名称</div>
								</div>
								<div class="fui-icon-col-sm external">
									<div class="text bold">商品总数</div>
								</div>
								<div class="fui-icon-col-sm external">
									<div class="text bold">已配送数量</div>
								</div>
								<div class="fui-icon-col-sm external">
									<div class="text bold">剩余数量</div>
								</div>
							</div>
							<div ng-repeat="item in pagedata.list" class="fui-icon-group col-5">
								<div class="fui-icon-col-sm">
									<img style="width:2rem" ng-src="{{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}}"/>
								</div>
								<div class="fui-icon-col-sm">
									<div class="info" style="font-size:0.6rem">{{item.title}}
									<div class="red" ng-if="item.selespename">[{{item.selespename}}]</div>
									</div>
								</div>
								<div class="fui-icon-col-sm">
									<div class="text bold">{{item.allnum}}</div>
								</div>
								<div class="fui-icon-col-sm">
									<div class="text bold">{{item.issendnum}}</div>
								</div>
								<div class="fui-icon-col-sm">
									<div class="text bold">{{item.lastnum}}</div>
								</div>
							</div>
							<div class='content-empty' ng-show="!pagedata.list || pagedata.list.length<=0" style="margin:1rem;">
								<i class='fa fa-comment-o'></i><br/>暂时没有商品!
							</div>
			</div>
			</div>
			<div class="fui-cell-group fui-cell-click" style="background:none">
							<a class="fui-cell external changepwd" href="javascript:;" ng-click="access_json('core/member.cpassword/')">
								<div class="fui-cell-text" style="text-align: center;">修改密码</div>
							</a>
							<a class="fui-cell external btn-logout" ng-click="post_json('core/member.logout/')">
								<div class="fui-cell-text" style="text-align: center;">退出登录</div>
							</a>
			</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('/member.index/list/',true);
if(scope.pagedata.alllastnum <6){
	scope.confirm({
		'message':'当前剩余牛奶数量'+scope.pagedata.alllastnum+',是否前往订奶？',
		'success':function(){
			scope.access_json(scope.pagedata.goshopurl);
		},
		'fail':function(){
		}
	});
}
</script>